package com.dcjt.firehotcarpad.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.dcjt.firehotcarpad.R
import com.dcjt.firehotcarpad.entity.AroundWaterEntity
import com.dcjt.firehotcarpad.entity.FunEntity

/**
 * Created by cj on 22:27.
 * Email:codesexy@163.com
 * Function:
 * desc:出差出访列表
 */

class AroundWaterAdapter(data: List<AroundWaterEntity.DataBeanXX.DataBeanX>?) :
    BaseQuickAdapter<AroundWaterEntity.DataBeanXX.DataBeanX, BaseViewHolder>(
        R.layout.item_around_water,
        data
    ) {

    override fun convert(helper: BaseViewHolder?, item: AroundWaterEntity.DataBeanXX.DataBeanX?) {
        item!!
        helper!!
        helper.setText(R.id.tv_name, item.mc + "   " + item.sylx)
            .setText(R.id.tvAddress, item.dz)
            .setText(R.id.tvDistance, item.xcsj1 + " " + item.zxjl1)
    }
}